package study.alibaba.sentinel.support.sentinel;

import com.alibaba.csp.sentinel.annotation.aspectj.SentinelResourceAspect;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration
public class SentinelResourceConfig {

    @Bean
    public SentinelResourceAspect sentinelResourceAspect() {
        SentinelResourceAspect aspect = new SentinelResourceAspect();
        return aspect;
    }
}
